/*
 * @Author: 朱安武 549410045@qq.com
 * @Date: 2023-01-11 12:00:01
 * @LastEditors: 朱安武 549410045@qq.com
 * @LastEditTime: 2023-02-03 15:30:54
 * @FilePath: \mobile\src\router.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createRouter, createWebHistory } from 'vue-router'


export const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/login',
            component: () => import('./pages/LoginPage.vue')
        },
        {
            path: '/home',
            alias: '/',
            component: () => import('./pages/HomePage.vue')
        },
        {
            path: '/car',
            component: () => import('./pages/CarPage.vue')
        },
        {
            path: '/register',
            component: () => import('./pages/Register.vue')
        },
        {
            path: '/detail',
            component: () => import('./Pages/DetailPage.vue')
        },
        {
            path: '/:path',
            component: () => import('./pages/404.vue')
        }
    ]
})